package org.zizi.dao;

import org.zizi.modal.User;
import org.zizi.util.PagedList;

public interface UserDao
{
	public void addOrUpdateUser(User user) throws Exception;
	
	public User getUser(String login) throws Exception;
	
	public User getUser(long id) throws Exception;
	
	public User getUserByNsrdzdah(String nsrdzdah) throws Exception;
	
	//通过name或login查询用户
	public PagedList<User> searchManagingUser(String key, String relationCode, int offset, int limit) throws Exception;
}
